package com.patterns.factory.simplefactory;

/**
 * 调用者
 * @author huangke
 *
 */
public class Test{
	public static void main(String[] args) {
		People p1 = PeopleFactory.createJerry();
		p1.say(); // Hi,I am Jerry
		People p2 = PeopleFactory.createTom();
		p2.say(); // My name is Tom
	}
}
